<?
	$id = (int)fgsBase::getParam(0);
	if ($id <= 0)
		fgsBase::redirect('games');
		
	$match = fgsMatchs::get($id);
	if ($match === false)
		fgsBase::redirect('matchs');

	if (fgsBase::getParam(1) == 'debug') {
		header('Content-Type: text/plain');
		print_r($match);
		exit;
	}
?>
